package org.csu.mypetstorems.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;
import org.csu.mypetstorems.entity.Admin;
import org.csu.mypetstorems.entity.Order;

import java.util.List;

@Mapper
public interface OrderMapper extends BaseMapper<Admin> {

    @Update("UPDATE orders SET status = #{status} WHERE id = #{id}")
    int changeState(@Param("status") String status, @Param("id") String id);

    List<Order> getOrderListWithCondition(String orderId, String phone);
}
